package function;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Time {
    public static String getTime()
    {
        Date currentTime = new Date();
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String time;
        time = formatter.format(currentTime);
        return time;
    }
}
